<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>家庭书籍管理系统</title>
<link rel="stylesheet" href="css/thin_table.css">
<script src="/js/md5.js"></script>
</head>
<body bgcolor="#8EC7FF">
<table width="100%" border="0">
	<tr>
		<td>(zwebtemplate)</td>
		<td><div align="right"> <a href="/index.html">首页</a> <a href="/registe.html">注册</a> </div></td>
	</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<form id="formLogin" name="formLogin" method="post" action="/user_loginning.zweb">
	<table class="thin_table" width="40%" align="center">
		<tr class="thin_table_tr">
			<td colspan="2"><div align="center">用户登录</div></td>
		</tr>
		<tr class="thin_table_tr">
			<td width="30%" align="right">用户名：</td>
			<td><input name="user_name" type="text" id="user_name" size="64" maxlength="64" />
			</td>
		</tr>
		<tr class="thin_table_tr">
			<td width="30%" align="right">密码：</td>
			<td><input name="password" type="password" id="password" size="40" maxlength="40" />
				<input type="hidden" name="password_md5" id="password_md5" />
			</td>
		</tr>
		<tr class="thin_table_tr">
			<td width="30%">&nbsp;</td>
			<td><input type="submit" value="   登录   " />
			</td>
		</tr>
	</table>
</form>
<script language="javascript">
	document.getElementById("formLogin").addEventListener("submit", function(event) {
		var password = document.getElementById("password").value ;
		var password_md5 = hex_md5( "salt"+password+"calvin" ) ;
		document.getElementById("password_md5").value = password_md5 ;
		
		this.submit();
	});
</script>
</body>
</html>
